<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="/struts-dojo-tags" prefix="sx"%>
<!DOCTYPE html>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/JavaScript" src="javascript.js"></script>
        <sx:head />
        <title>SCA - Manter Aluno</title>
    </head>
    <body>
        <h1>Manter Aluno - ${operacao}</h1>
        
        <s:form action="Aluno">
            <s:hidden name="operacao" value="%{operacao}"></s:hidden>
            
            <s:textfield name="aluno.matricula" readonly="%{readOnlyCod}" label="Matricula (gerada automaticamente)" value="%{aluno.matricula}" readonly=""></s:textfield>
            <s:textfield name="aluno.nome" readonly="%{readOnly}" label="Nome" value="%{aluno.nome}"></s:textfield>
            <sx:datetimepicker name="aluno.dtNascimento" disabled="%{readOnly}" label="Data Nascimento" value="%{aluno.dtNascimento}" displayFormat="dd/MM/yyyy"></sx:datetimepicker>
            <s:textfield name="aluno.endLogradouro" readonly="%{readOnly}" label="Logradouro" value="%{aluno.endLogradouro}"></s:textfield>
            <s:textfield name="aluno.endNumero" readonly="%{readOnly}" label="Numero" onkeyup="campoNumerico(this)" value="%{aluno.endNumero}"></s:textfield>
            <s:textfield name="aluno.endComplemento" readonly="%{readOnly}" label="Complemento" value="%{aluno.endComplemento}"></s:textfield>
            <s:textfield name="aluno.endBairro" readonly="%{readOnly}" label="Bairro" value="%{aluno.endBairro}"></s:textfield>
            <s:textfield name="aluno.endCep" readonly="%{readOnly}" label="CEP" value="%{aluno.endCep}"></s:textfield>
            <s:textfield name="aluno.endCidade" readonly="%{readOnly}" label="Cidade" value="%{aluno.endCidade}"></s:textfield>
            <s:select name="aluno.endEstado" readonly="%{readOnly}" label="Estado" list="estados"></s:select>
            <s:textfield name="aluno.rg" readonly="%{readOnly}" label="RG" value="%{aluno.rg}"></s:textfield>
            <s:textfield name="aluno.cpf" readonly="%{readOnly}" label="CPF" value="%{aluno.cpf}"></s:textfield>
            <s:textfield name="aluno.email" readonly="%{readOnly}" label="E-mail" value="%{aluno.email}"></s:textfield>
            <s:select name="aluno.curso.codCurso" readonly="%{readOnly}" label="Curso" listKey="codCurso" listValue="nome" 
                      list="cursos" ></s:select>
            <s:textfield name="aluno.anoIngresso" readonly="%{readOnly}" label="Ano de Ingresso" onkeyup="campoNumerico(this)" value="%{aluno.anoIngresso}"></s:textfield>
            <s:textfield name="aluno.semestreIngresso" readonly="%{readOnly}" label="Semestre de Ingresso" onkeyup="campoNumerico(this)" value="%{aluno.semestreIngresso}"></s:textfield>
            <s:select name="aluno.status" readonly="%{readOnly}" label="Status" list="statusList"></s:select>
            <s:textfield name="aluno.posicaoVestibular" readonly="%{readOnly}" label="Posição de Vestibular" onkeyup="campoNumerico(this)" value="%{aluno.posicaoVestibular}"></s:textfield>
            
            <s:submit action="voltarAluno" value="Voltar"></s:submit>
            <s:submit action="confirmarAluno" value="Confimar"></s:submit>
        </s:form>
        
    </body>
</html>
